﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ShootSearch.Util;

namespace ShootSearch.Runner.Controls
{
    public delegate void MethodCaller();

    public class RunnerHelper
    {
        public static string ConfigPath 
        {
            get 
            {
                return GetPath("Configs");
            }
        }

        public static string TaskPath
        {
            get
            {
                return GetPath("Tasks");
            }
        }

        public static string GetPath(string name)
        {
            string path = Path.GetFullPath(Path.Combine(ShootSearch.Util.IO.StartupPath, name));
            return IO.FormatDirName(path);
        }
    }
}
